<template>
  <div class="header">
    <h1>{{ title }}</h1>
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: 'vHeader',
  props: {
    title: String
  },
  data() {
    return {
      msg: '标题'
    };
  }
};
</script>

<style lang="less" scoped>
.header {
  background-color: #2f2f2f;
  line-height: 46px;
  height: 46px !important;
  color: white;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  text-align: center;
  z-index: 69;
  h1 {
    font-weight: normal;
    font-size: 1.8rem;
    // letter-spacing: 2px;
    line-height: inherit;
  }
}
</style>
